package com.easyse.serviceclient.clients;

import com.easyse.model.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zky
 * @date: 2022/10/05
 * @description: 用户相关远程调用接口
 */
@FeignClient(value = "userservice")
//@RequestMapping("/user")
public interface UserClient {
    /**
     * 测试查找用户
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    ResultVO finduser(@PathVariable("id") Long id);
}
